// pages/constellation/constellation.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list:[
      { text: '狮子座', iconClass:'Leo',color:'',link:''},
      { text: '射手座', iconClass: 'Sagittarius', color: '', link: ''},
      { text: '白羊座', iconClass: 'Aries', color: '', link: '' },
      { text: '天蝎座', iconClass: 'Scorpio', color: '', link: ''},
      { text: '天秤座', iconClass: 'Libra', color: '', link: '' },
      { text: '水瓶座', iconClass: 'Aquarius', color: '', link: ''},
      { text: '双子座', iconClass: 'Gemini', color: '', link: ''},
      { text: '双鱼座', iconClass: 'Pisces', color: '', link: ''},
      { text: '魔羯座', iconClass: 'Capricorn', color: '', link: ''},
      { text: '巨蟹座', iconClass: 'Cancer', color: '', link: ''},
      { text: '金牛座', iconClass: 'Taurus', color: '', link: '' },
      { text: '处女座', iconClass: 'Virgo', color: '', link: ''}
    ]
  },

  toDetail(e){
    let link = e.currentTarget.dataset.link;
    wx.navigateTo({
      url: '/pages/constellation-detail/constellation-detaill?text=' + link,
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})